package br.com.nrti.still.model;

import java.io.Serializable;
import java.sql.Date;

public class Evento implements Cloneable, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5658350152971534438L;

	private Integer idEvento;
	private String nomeEvento;
	private Date dataEvento;
	private String diasRepeticao;
	private Date horaInicio;
	private Date horaFinal;
	private Boolean ativo;
	private Boolean restaurar;
	private String iniToque;
	private String iniAviao;
	private String iniWifi;
	private String iniRedeMovel;
	private String iniBluetooth;
	private String iniAlarme;
	private String iniCalendario;
	private String fimToque;
	private String fimAviao;
	private String fimWifi;
	private String fimRedeMovel;
	private String fimBluetooth;
	private String fimAlarme;
	private String fimCalendario;

	public Integer getIdEvento() {
		return idEvento;
	}

	public void setIdEvento(Integer idEvento) {
		this.idEvento = idEvento;
	}

	public String getNomeEvento() {
		return nomeEvento;
	}

	public void setNomeEvento(String nomeEvento) {
		this.nomeEvento = nomeEvento;
	}

	public Date getDataEvento() {
		return dataEvento;
	}

	public void setDataEvento(Date dataEvento) {
		this.dataEvento = dataEvento;
	}

	public String getDiasRepeticao() {
		return diasRepeticao;
	}

	public void setDiasRepeticao(String diasRepeticao) {
		this.diasRepeticao = diasRepeticao;
	}

	public Date getHoraInicio() {
		return horaInicio;
	}

	public void setHoraInicio(Date horaInicio) {
		this.horaInicio = horaInicio;
	}

	public Date getHoraFinal() {
		return horaFinal;
	}

	public void setHoraFinal(Date horaFinal) {
		this.horaFinal = horaFinal;
	}

	public Boolean getAtivo() {
		return ativo;
	}

	public void setAtivo(Boolean ativo) {
		this.ativo = ativo;
	}

	public Boolean getRestaurar() {
		return restaurar;
	}

	public void setRestaurar(Boolean restaurar) {
		this.restaurar = restaurar;
	}

	public String getIniToque() {
		return iniToque;
	}

	public void setIniToque(String iniToque) {
		this.iniToque = iniToque;
	}

	public String getIniAviao() {
		return iniAviao;
	}

	public void setIniAviao(String iniAviao) {
		this.iniAviao = iniAviao;
	}

	public String getIniWifi() {
		return iniWifi;
	}

	public void setIniWifi(String iniWifi) {
		this.iniWifi = iniWifi;
	}

	public String getIniRedeMovel() {
		return iniRedeMovel;
	}

	public void setIniRedeMovel(String iniRedeMovel) {
		this.iniRedeMovel = iniRedeMovel;
	}

	public String getIniBluetooth() {
		return iniBluetooth;
	}

	public void setIniBluetooth(String iniBluetooth) {
		this.iniBluetooth = iniBluetooth;
	}

	public String getIniAlarme() {
		return iniAlarme;
	}

	public void setIniAlarme(String iniAlarme) {
		this.iniAlarme = iniAlarme;
	}

	public String getIniCalendario() {
		return iniCalendario;
	}

	public void setIniCalendario(String iniCalendario) {
		this.iniCalendario = iniCalendario;
	}

	public String getFimToque() {
		return fimToque;
	}

	public void setFimToque(String fimToque) {
		this.fimToque = fimToque;
	}

	public String getFimAviao() {
		return fimAviao;
	}

	public void setFimAviao(String fimAviao) {
		this.fimAviao = fimAviao;
	}

	public String getFimWifi() {
		return fimWifi;
	}

	public void setFimWifi(String fimWifi) {
		this.fimWifi = fimWifi;
	}

	public String getFimRedeMovel() {
		return fimRedeMovel;
	}

	public void setFimRedeMovel(String fimRedeMovel) {
		this.fimRedeMovel = fimRedeMovel;
	}

	public String getFimBluetooth() {
		return fimBluetooth;
	}

	public void setFimBluetooth(String fimBluetooth) {
		this.fimBluetooth = fimBluetooth;
	}

	public String getFimAlarme() {
		return fimAlarme;
	}

	public void setFimAlarme(String fimAlarme) {
		this.fimAlarme = fimAlarme;
	}

	public String getFimCalendario() {
		return fimCalendario;
	}

	public void setFimCalendario(String fimCalendario) {
		this.fimCalendario = fimCalendario;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ativo == null) ? 0 : ativo.hashCode());
		result = prime * result
				+ ((dataEvento == null) ? 0 : dataEvento.hashCode());
		result = prime * result
				+ ((diasRepeticao == null) ? 0 : diasRepeticao.hashCode());
		result = prime * result
				+ ((fimAlarme == null) ? 0 : fimAlarme.hashCode());
		result = prime * result
				+ ((fimAviao == null) ? 0 : fimAviao.hashCode());
		result = prime * result
				+ ((fimBluetooth == null) ? 0 : fimBluetooth.hashCode());
		result = prime * result
				+ ((fimCalendario == null) ? 0 : fimCalendario.hashCode());
		result = prime * result
				+ ((fimRedeMovel == null) ? 0 : fimRedeMovel.hashCode());
		result = prime * result
				+ ((fimToque == null) ? 0 : fimToque.hashCode());
		result = prime * result + ((fimWifi == null) ? 0 : fimWifi.hashCode());
		result = prime * result
				+ ((horaFinal == null) ? 0 : horaFinal.hashCode());
		result = prime * result
				+ ((horaInicio == null) ? 0 : horaInicio.hashCode());
		result = prime * result
				+ ((idEvento == null) ? 0 : idEvento.hashCode());
		result = prime * result
				+ ((iniAlarme == null) ? 0 : iniAlarme.hashCode());
		result = prime * result
				+ ((iniAviao == null) ? 0 : iniAviao.hashCode());
		result = prime * result
				+ ((iniBluetooth == null) ? 0 : iniBluetooth.hashCode());
		result = prime * result
				+ ((iniCalendario == null) ? 0 : iniCalendario.hashCode());
		result = prime * result
				+ ((iniRedeMovel == null) ? 0 : iniRedeMovel.hashCode());
		result = prime * result
				+ ((iniToque == null) ? 0 : iniToque.hashCode());
		result = prime * result + ((iniWifi == null) ? 0 : iniWifi.hashCode());
		result = prime * result
				+ ((nomeEvento == null) ? 0 : nomeEvento.hashCode());
		result = prime * result
				+ ((restaurar == null) ? 0 : restaurar.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Evento other = (Evento) obj;
		if (ativo == null) {
			if (other.ativo != null)
				return false;
		} else if (!ativo.equals(other.ativo))
			return false;
		if (dataEvento == null) {
			if (other.dataEvento != null)
				return false;
		} else if (!dataEvento.equals(other.dataEvento))
			return false;
		if (diasRepeticao == null) {
			if (other.diasRepeticao != null)
				return false;
		} else if (!diasRepeticao.equals(other.diasRepeticao))
			return false;
		if (fimAlarme == null) {
			if (other.fimAlarme != null)
				return false;
		} else if (!fimAlarme.equals(other.fimAlarme))
			return false;
		if (fimAviao == null) {
			if (other.fimAviao != null)
				return false;
		} else if (!fimAviao.equals(other.fimAviao))
			return false;
		if (fimBluetooth == null) {
			if (other.fimBluetooth != null)
				return false;
		} else if (!fimBluetooth.equals(other.fimBluetooth))
			return false;
		if (fimCalendario == null) {
			if (other.fimCalendario != null)
				return false;
		} else if (!fimCalendario.equals(other.fimCalendario))
			return false;
		if (fimRedeMovel == null) {
			if (other.fimRedeMovel != null)
				return false;
		} else if (!fimRedeMovel.equals(other.fimRedeMovel))
			return false;
		if (fimToque == null) {
			if (other.fimToque != null)
				return false;
		} else if (!fimToque.equals(other.fimToque))
			return false;
		if (fimWifi == null) {
			if (other.fimWifi != null)
				return false;
		} else if (!fimWifi.equals(other.fimWifi))
			return false;
		if (horaFinal == null) {
			if (other.horaFinal != null)
				return false;
		} else if (!horaFinal.equals(other.horaFinal))
			return false;
		if (horaInicio == null) {
			if (other.horaInicio != null)
				return false;
		} else if (!horaInicio.equals(other.horaInicio))
			return false;
		if (idEvento == null) {
			if (other.idEvento != null)
				return false;
		} else if (!idEvento.equals(other.idEvento))
			return false;
		if (iniAlarme == null) {
			if (other.iniAlarme != null)
				return false;
		} else if (!iniAlarme.equals(other.iniAlarme))
			return false;
		if (iniAviao == null) {
			if (other.iniAviao != null)
				return false;
		} else if (!iniAviao.equals(other.iniAviao))
			return false;
		if (iniBluetooth == null) {
			if (other.iniBluetooth != null)
				return false;
		} else if (!iniBluetooth.equals(other.iniBluetooth))
			return false;
		if (iniCalendario == null) {
			if (other.iniCalendario != null)
				return false;
		} else if (!iniCalendario.equals(other.iniCalendario))
			return false;
		if (iniRedeMovel == null) {
			if (other.iniRedeMovel != null)
				return false;
		} else if (!iniRedeMovel.equals(other.iniRedeMovel))
			return false;
		if (iniToque == null) {
			if (other.iniToque != null)
				return false;
		} else if (!iniToque.equals(other.iniToque))
			return false;
		if (iniWifi == null) {
			if (other.iniWifi != null)
				return false;
		} else if (!iniWifi.equals(other.iniWifi))
			return false;
		if (nomeEvento == null) {
			if (other.nomeEvento != null)
				return false;
		} else if (!nomeEvento.equals(other.nomeEvento))
			return false;
		if (restaurar == null) {
			if (other.restaurar != null)
				return false;
		} else if (!restaurar.equals(other.restaurar))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Evento [idEvento=" + idEvento + ", nomeEvento=" + nomeEvento
				+ ", dataEvento=" + dataEvento + ", diasRepeticao="
				+ diasRepeticao + ", horaInicio=" + horaInicio + ", horaFinal="
				+ horaFinal + ", ativo=" + ativo + ", restaurar=" + restaurar
				+ ", iniToque=" + iniToque + ", iniAviao=" + iniAviao
				+ ", iniWifi=" + iniWifi + ", iniRedeMovel=" + iniRedeMovel
				+ ", iniBluetooth=" + iniBluetooth + ", iniAlarme=" + iniAlarme
				+ ", iniCalendario=" + iniCalendario + ", fimToque=" + fimToque
				+ ", fimAviao=" + fimAviao + ", fimWifi=" + fimWifi
				+ ", fimRedeMovel=" + fimRedeMovel + ", fimBluetooth="
				+ fimBluetooth + ", fimAlarme=" + fimAlarme
				+ ", fimCalendario=" + fimCalendario + "]";
	}
}
